<?php /* Smarty version 2.6.13, created on 2013-10-09 10:01:26
         compiled from Index/headsearch.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Coming Eating--searching</title>
<link rel="shortcut icon" href="Tpl/hotel.ico"/>
<!-- href属性中的路径要相对主文件定位，否则会加载不到 -->
<link rel="stylesheet" type="text/css" href="Public/Css/Base.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/aboutus.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/position.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/nav.css"/>
<script type="text/javascript" src="Public/Js/index.js"></script>

<script type="text/javascript" src="Public/Js/jquery.js"></script>
<script type="text/javascript" src="Public/Js/main.js"></script>
<script type="text/javascript" src="Public/Js/lightbox.min.js"></script>
<script type="text/javascript">
		$(document).ready(function() {
			$('#main_nav').allenMenu();
			$('#slide').allenSlide();
			$('a[name=need_lightbox]').lightBox();
		});
</script>

</head>
<body >

<!-- 这个地方用一个标志  确定是否显示这个 -->
<?php if ($_SESSION['loginFlag'] == 0): ?>
	
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/hide.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/indexheader.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/position.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id='searchshow'>
	<?php if ($this->_tpl_vars['flag'] == 'menu'): ?>
		<?php $_from = $this->_tpl_vars['searchRes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['search'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['search']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['v']):
        $this->_foreach['search']['iteration']++;
?>
			<div id='eachshow'>
				<h2><?php echo ($this->_foreach['search']['iteration']-1)+1; ?>
.<a href='MenuDetail.php?menu_id=<?php echo $this->_tpl_vars['v']['menu_id']; ?>
'><?php echo $this->_tpl_vars['v']['menu_name']; ?>
</a></h2>
				<div id='eachshowcontent'><?php echo $this->_tpl_vars['v']['menu_content']; ?>
<a href='MenuDetail.php?menu_id=<?php echo $this->_tpl_vars['v']['menu_id']; ?>
'><font id='eachmore'>更多&gt;&gt;</font></a>
				
				</div>
			</div>
		<?php endforeach; else: ?>
			<div>您没有查询数据！</div>
		<?php endif; unset($_from); ?>
	<?php else: ?>
		<?php $_from = $this->_tpl_vars['searchRes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['search'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['search']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['v']):
        $this->_foreach['search']['iteration']++;
?>
			<div id='eachshow'>
				<h2><?php echo ($this->_foreach['search']['iteration']-1)+1; ?>
.<a href='FoodDetail.php?food_id=<?php echo $this->_tpl_vars['v']['food_id']; ?>
'><?php echo $this->_tpl_vars['v']['food_name']; ?>
</a></h2>
				<div id='eachshowcontent'><?php echo $this->_tpl_vars['v']['food_content']; ?>
<a href='FoodDetail.php?food_id=<?php echo $this->_tpl_vars['v']['food_id']; ?>
'><font id='eachmore'>更多&gt;&gt;</font></a>
				
				</div>
			</div>
		<?php endforeach; else: ?>
			<div>您没有查询数据！</div>
		<?php endif; unset($_from); ?>	
	
	<?php endif; ?>	
		
	<div id='page'>
		<?php echo $this->_tpl_vars['pageStr']; ?>

	</div>
</div>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>